
#define TEST_NAME "scalarmult5_noclamp"
#include "cmptest.h"

static unsigned char alicesk[32] = { 0xbe, 0xa4, 0xc2, 0x28, 0xa9, 0xf6, 0x7f,
                                     0x97, 0xe4, 0xfa, 0x8c, 0x95, 0x21, 0x3f,
                                     0x35, 0xe9, 0x65, 0xdc, 0x5a, 0xe0, 0xc1,
                                     0x6c, 0xb0, 0x3e, 0xad, 0x34, 0x8d, 0x08,
                                     0xd2, 0x79, 0xda, 0x65 };

static unsigned char bobpk[32] = { 0x9f, 0x14, 0x91, 0x64, 0xce, 0x15, 0x1d,
                                   0x68, 0xa0, 0x36, 0x93, 0xf5, 0x3c, 0xb3,
                                   0x34, 0x41, 0xf7, 0x5b, 0x6a, 0x50, 0xad,
                                   0xc3, 0x9c, 0x01, 0xc3, 0x52, 0x6f, 0x58,
                                   0xe1, 0x6c, 0xf2, 0x47 };

int
main(void)
{
    unsigned char k[32];
    char          hex[65];
    int           i;
    int           ret;

    ret = crypto_scalarmult_noclamp(k, alicesk, bobpk);
    assert(ret == 0);
    sodium_bin2hex(hex, sizeof hex, k, sizeof k);
    printf("%s\n", hex);

    return 0;
}
